<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery-3.3.1.min.js"></script>
</head>
<body>
<div id="question_list">

</div>
</body>
<script>
    $(function(){
        $.ajax({
            url: '/question/list',
            dataType: 'json',
            success: function (questions) {
                for (var i = 0; i < questions.length; i++) {
                    $('#question_list').append(questions[i].qtext + "<br>");
                    $('#question_list').append("&emsp;&emsp;&emsp;&emsp;"+questions[i].topAnswer.atext + "<br>");

                }
            }
        });
    })
</script>
</html>